﻿using System.Web.UI;
using Umbraco.Cms.Web.Model.BackOffice.PropertyEditors;

[assembly: WebResource("Filesystem.FilePicker.Content.filepicker.js", "application/x-javascript")]
[assembly: WebResource("Filesystem.FilePicker.Content.filepicker.css", "text/css")]

namespace Filesystem.FilePicker
{
    [PropertyEditor("CAD57DDE-AAA0-4DA6-AEBE-D6C9D90C93B7", "Filesystem.FilePicker","File Picker")]
    public class FilePickerEditor : PropertyEditor<FilePickerEditorModel, FilePickerPreValueModel>
    {
        #region Overrides of PropertyEditor<FilePickerEditorModel,FilePickerPreValueModel>

        public override FilePickerEditorModel CreateEditorModel(FilePickerPreValueModel preValues)
        {
            return new FilePickerEditorModel(preValues);
        }

        public override FilePickerPreValueModel CreatePreValueEditorModel()
        {
            return new FilePickerPreValueModel();
        }

        #endregion
    }
}
